projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f196044
)
mtd, cfi, ubi: add missing writebufsize initialization
author
Heiko Schocher
<
[email protected]
>
Fri, 31 Oct 2014 10:29:45 +0000
(11:29 +0100)
committer
Heiko Schocher
<
[email protected]
>
Wed, 19 Nov 2014 06:54:04 +0000
(07:54 +0100)
ff94bc40af3481d47546595ba73c136de6af6929
"mtd, ubi, ubifs: resync with Linux-3.14"
introduced the writebufsize field in struct mtd_info, which
is not initialized in the cfi_flash driver, which leads in
not working ubi on cfi flashes. Fix it
Signed-off-by: Heiko Schocher <
[email protected]
>
Reported-by: Andrew Ruder <
[email protected]
>
Acked-by: Stefan Roese <
[email protected]
>
Acked-by: Andrew Ruder <
[email protected]
>
drivers/mtd/cfi_mtd.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/cfi_mtd.c
b/drivers/mtd/cfi_mtd.c
index ac805ff1e9c7b91f87097d97c8f4e578a06fec3d..709a48642d6056ef66feafa6bb6af84e2df49387 100644
(file)
--- a/
drivers/mtd/cfi_mtd.c
+++ b/
drivers/mtd/cfi_mtd.c
@@
-226,6
+226,7
@@
int cfi_mtd_init(void)
mtd->flags = MTD_CAP_NORFLASH;
mtd->size = fi->size;
mtd->writesize = 1;
+ mtd->writebufsize = mtd->writesize;
mtd->_erase = cfi_mtd_erase;
mtd->_read = cfi_mtd_read;